﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

public partial class windows虚拟键 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        System.Text.RegularExpressions.MatchCollection MC = System.Text.RegularExpressions.Regex.Matches(TextBox1.Text, @"(VK_\w{0,}\s{0,}\(0x.+\))");
        string str = "";

        TextBox1.Text = "";
        foreach (System.Text.RegularExpressions.Group p in MC)
        {
            TextBox1.Text += System.Text.RegularExpressions.Regex.Match(p.Value, @"VK_\w{0,}\s{0,}").Value + "=" + System.Text.RegularExpressions.Regex.Match(p.Value, @"\(0x.+\)").Value.Replace("(","").Replace(")","") + ",\r\n";
        }
        
    }
}
